package com.foreknow.dao;

import com.foreknow.model.Orders;
import com.foreknow.model.User;

import java.io.InputStream;
import java.util.List;

public interface UserMapper {
    /**
     * 根据 id 查询
     * @param id
     * @return
     */
    public User getUserById(Integer id);

    /**
     * 添加
     * @param user
     */
    public void insertUser(User user);

    /**
     * 删除
     * @param id
     */
    public void deleteUser(Integer id);


    /**
     * 查询订单及所关联的用户信息
     */
    public List<Orders> getOrdersUserInfo();

    /**
     * 查询订单及所关联用户和明细
     * @return
     */
    public List<Orders> getOrdersUserOrderdetailInfo();
}









